package com.lei.day11_17work;

import android.os.Bundle;
import android.widget.LinearLayout;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

    private LinearLayout ll;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
    }

    private void initView() {
        ll = (LinearLayout) findViewById(R.id.ll);
        GiftView giftView = new GiftView(this, new AnimaMessage("Ljl", 1, "游轮"));
        ll.addView(giftView);
    }
}
